vim.g.neovide_input_ime = false
HandleIME({
	on = function() vim.g.neovide_input_ime = true end,
	off = function() vim.g.neovide_input_ime = false end,
})

vim.g.neovide_scale_factor = 13 / 16
local change_scale_factor = function(delta)
	vim.g.neovide_scale_factor = vim.g.neovide_scale_factor + delta
end
vim.keymap.set({ 'n', 'v', 'i' }, "<C-=>", function()
	change_scale_factor(1 / 16)
end)
vim.keymap.set({ 'n', 'v', 'i' }, "<C-->", function()
	change_scale_factor(-1 / 16)
end)
